package org.ielts.domain.log;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.ielts.domain.base.Course;

@Entity
@DiscriminatorValue("Consult")
public class ConsultLog extends SchoolLog {

	public ConsultLog() {
		setLogType("Consult");
	}

	@Override
	public String getLogType() {
		return "Consult";
	}

	private String source;

	@ManyToOne(fetch = FetchType.EAGER)
	private Course course;

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}
}
